{template admin/header}
<script src="static/js/date/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
    function checkinput() {
        if (document.getElementById('title').value == '') {
            MessageBox('notice', "歌名不能为空", '提示');
            return false;
        }
        if (document.getElementById('author').value == '') {
            MessageBox('notice', "歌手不能为空", '提示');
            return false;
        }
        if (document.getElementById('image').value == '') {
            MessageBox('notice', "请上传预览图", '提示');
            return false;
        }
        if (document.getElementById('audition').value == '') {
            MessageBox('notice', "请上传音频文件", '提示');
            return false;
        }
    }
    
</script>
<div class="mt10">
<style type="text/css">
    .radio_uid{margin: 10px;}
</style>
    <form action="{$action}" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return checkinput()">
        <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
            <tr class="header">
                <td colspan="2">{$title}</td>
            </tr>
            <tr>
                <td width="13%" bgcolor="#F8F8F8">&nbsp;</td>
                <td width="87%" bgcolor="#FFFFFF">&nbsp;</td>
            </tr>

            <tr>
                <td class="altbg1" width="13%" bgcolor="#F8F8F8">歌名</td>
                <td class="altbg2" width="87%" align="right" bgcolor="#FFFFFF">
                    <input type="text" id="title" name="title" maxlength="30">
                </td>
            </tr>
            <tr>
                <td class="altbg1" width="13%" bgcolor="#F8F8F8">歌手</td>
                <td class="altbg2" width="87%" align="right" bgcolor="#FFFFFF">
                    <input type="text" id="author" name="author" maxlength="30" placeholder="">
                </td>
            </tr>
            <tr>
                <td class="altbg1" width="13%" bgcolor="#F8F8F8">专辑</td>
                <td class="altbg2" width="87%" align="right" bgcolor="#FFFFFF">
                    <input type="text" id="special" name="special" maxlength="30" placeholder="">
                </td>
            </tr>
            <tr>
                <td class="altbg1" width="13%" bgcolor="#F8F8F8">预览图</td>
                <td class="altbg2" width="87%" align="right" bgcolor="#FFFFFF"><input type="file" name="image" id="image">（<span class="img_size">大小：400*400</span>）</td>
            </tr>
            <tr>
                <td class="altbg1" width="13%" bgcolor="#F8F8F8">音频文件</td>
                <td class="altbg2" width="87%" align="right" bgcolor="#FFFFFF"><input type="file" name="audition" id="audition">（<span class="img_size">格式：mp3</span>）</td>
            </tr>
        </table>
        <br>
        <center><input type="submit" class="button" id="submit" name="addsubmit" value="保 存"></center>

    </form>

</div>
<script type="text/javascript">
    
</script>
